home *** CD-ROM | disk | FTP | other *** search
/ Die Ultimative Software-P…i Collection 1996 & 1997 / Die Ultimative Software-Pakete CD-ROM fur Atari Collection 1996 & 1997.iso / g / gnu_c / gempp19.zoo / gem++19 / src / gemvo.cc < prev    next >
Encoding:
C/C++ Source or Header  |  1993-10-20  |  987 b   |  29 lines

  1. /////////////////////////////////////////////////////////////////////////////
  2. //
  3. //  This file is Copyright 1992,1993 by Warwick W. Allison.
  4. //  This file is part of the gem++ library.
  5. //  You are free to copy and modify these sources, provided you acknowledge
  6. //  the origin by retaining this notice, and adhere to the conditions
  7. //  described in the file COPYING.LIB.
  8. //
  9. /////////////////////////////////////////////////////////////////////////////
  10.  
  11. #include "gemvo.h"
  12. #include "grect.h"
  13. #include "vdi.h"
  14.  
  15. GEMvdiobject::GEMvdiobject(GEMform& f, int RSCindex, VDI& v) :
  16.         GEMuserobject(f,RSCindex),
  17.         vdi(v)
  18. { }
  19.  
  20. virtual void GEMvdiobject::Draw(const PARMBLK* p)
  21. {
  22.     GRect drawclip(p->pb_xc,p->pb_yc,p->pb_wc,p->pb_hc);
  23.     GRect objclip(p->pb_x,p->pb_y,Width(),Height());
  24.     drawclip.Clip(objclip);
  25.     vdi.clip(drawclip.g_x,drawclip.g_y,drawclip.g_x+drawclip.g_w-1,drawclip.g_y+drawclip.g_h-1);
  26.     //vdi.clip(p->pb_xc,p->pb_yc,p->pb_xc+p->pb_wc-1,p->pb_yc+p->pb_hc-1);
  27.     Draw(p->pb_x,p->pb_y);
  28. }
  29.